import Vue from 'vue'
import App from './App'
import appInfo from './appInfo'
import mNetTool from "./tools/NetTool.js"
import {
	msg,
	isLogin,
	debounce,
	throttle,
	prePage,
	date,
} from '@/common/js/util'
Vue.prototype.mNetTool=mNetTool;
Vue.prototype.$util = {
	msg,
	isLogin,
	debounce,
	throttle,
	prePage,
	date
}
// vuex
import store from './store'

// 引入全局uView
import uView from '@/uni_modules/uview-ui'
import initMixin  from './static/js/initMixin.js' 
// Vue.mixin(initMixin);
// import mixin from './common/mixin/mixin'

Vue.prototype.$store = store

Vue.config.productionTip = false

App.mpType = 'app'
Vue.use(uView)

// #ifdef MP
// 引入uView对小程序分享的mixin封装
const mpShare = require('./uni_modules/uview-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)
// #endif

// Vue.mixin(mixin)

const app = new Vue({
    store,
    ...App
})

// 引入请求封装
require('./util/request/index')(app)

app.$mount()
